import {http} from "@/utils/http";
export default {
	// 获取商品分类
	async getMallCats(param){
		return http.get('/shopping/getCats', param, false)
	},
	
	// 获取商品列表
	async getMallList(param){
		return http.get('/shopping/getList', param, false)
	},

	// 获取商品详情
	async getMallInfo(id){
		return http.get('/shopping/getInfo?id='+id)
	},
	
	// 获取我的订单列表
	async getMallOrderList(param){
		return http.get('/shopping/getOrderList', param)
	},
	
	// 获取订单详情
	async getMallOrderInfo(id){
		return http.get('/shopping/getOrderInfo', {id})
	},
	
	// 提交订单
	async submitMallOrder(param){
		return http.post('/shopping/subOrder',param)
	},
	
	// 确认收货
	async completeMallOrder(param){
		return http.post('/shopping/completeOrder',param)
	}
}